package cn.com.egova.dao;

import cn.com.egova.domain.PageBean;
import org.hibernate.criterion.DetachedCriteria;

import java.util.List;

/**
 * Created by yuanchao on 2020/5/26.
 */
public interface BaseDao<T> {
    void save(T t);

    void delete(T t);

    void update(T t);

    T findById(Long id);

    List<T> findAll();

    PageBean<T> findByPage(Integer pageCode, Integer pageSize, DetachedCriteria criteria);
}
